import Vue from 'vue'
import App from './App.vue'
import store from './store'

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  store, // 注册store => 组件对象可以通过$store来得到store对象
}).$mount('#app')


/* 
store对象
  state
  getters
  commit()
  dispatch()
辅助函数:
  mapState()
  mapGetters()
  mapMutations()
  mapActions()
*/
